package be.kdg.netpresentclient;

import java.util.EventObject;
/**
* Event casted when there is a question asked in the QnaPanel that needs
* to be handled by the ClientGUI. This event contains the question that was asked? 
*
* @autor Timothy Huber, Joris Clevenbergs, Rik verschuren, Wim Van der Wilt
*/
public class QuestionAskedEvent extends EventObject {
	
	private static final long serialVersionUID = 1L;
	private String sQuestion;
	
	/**
	* Constructor
	* 
	* @param source	object that casted this event.
	* @param question	String which contains the question.
	*/
	public QuestionAskedEvent(Object source, String question) {
		super(source);
		this.sQuestion = question;
	}

	/**
	* get function for the sQuestion  
	*/
	public String getQuestion() {
		return sQuestion;
	}
}